package com.ruoyi.device.history.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * @author breeze
 * @date 2022-12-15
 */
public class BizDeviceHistory extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 主键 */
	@TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /** 设备编码 */
    @Excel(name = "设备编码")
    private String deviceCode;

    /** 设备类型名称 */
    @Excel(name = "设备类型名称")
    private String deviceTypeName;

    /** 单位 */
    @Excel(name = "单位")
    private String monitorUnit;

    /** 监测指标 */
    @Excel(name = "监测指标")
    private String monitorQuota;

    /** 数据值 */
    @Excel(name = "数据值")
    private String monitorData;

    /** 时间(秒级时间戳) */
    @Excel(name = "时间(秒级时间戳)")
    private String stamp;

    /** 设备类型 */
    @Excel(name = "设备类型")
    private String deviceType;

    /** 监测指标名称 */
    @Excel(name = "监测指标名称")
    private String monitorQuotaName;

    /** 时间(时间) */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "时间(时间)", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDeviceCode(String deviceCode) 
    {
        this.deviceCode = deviceCode;
    }

    public String getDeviceCode() 
    {
        return deviceCode;
    }
    public void setDeviceTypeName(String deviceTypeName) 
    {
        this.deviceTypeName = deviceTypeName;
    }

    public String getDeviceTypeName() 
    {
        return deviceTypeName;
    }
    public void setMonitorUnit(String monitorUnit) 
    {
        this.monitorUnit = monitorUnit;
    }

    public String getMonitorUnit() 
    {
        return monitorUnit;
    }
    public void setMonitorQuota(String monitorQuota) 
    {
        this.monitorQuota = monitorQuota;
    }

    public String getMonitorQuota() 
    {
        return monitorQuota;
    }
    public void setMonitorData(String monitorData) 
    {
        this.monitorData = monitorData;
    }

    public String getMonitorData() 
    {
        return monitorData;
    }
    public void setStamp(String stamp) 
    {
        this.stamp = stamp;
    }

    public String getStamp() 
    {
        return stamp;
    }
    public void setDeviceType(String deviceType) 
    {
        this.deviceType = deviceType;
    }

    public String getDeviceType() 
    {
        return deviceType;
    }
    public void setMonitorQuotaName(String monitorQuotaName) 
    {
        this.monitorQuotaName = monitorQuotaName;
    }

    public String getMonitorQuotaName() 
    {
        return monitorQuotaName;
    }
    public void setDate(Date date) 
    {
        this.date = date;
    }

    public Date getDate() 
    {
        return date;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deviceCode", getDeviceCode())
            .append("deviceTypeName", getDeviceTypeName())
            .append("monitorUnit", getMonitorUnit())
            .append("monitorQuota", getMonitorQuota())
            .append("monitorData", getMonitorData())
            .append("stamp", getStamp())
            .append("deviceType", getDeviceType())
            .append("monitorQuotaName", getMonitorQuotaName())
            .append("date", getDate())
            .toString();
    }
}